﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using UofCASE.AgileProductLinerDSL.Util;

namespace APLDTests {
    [TestClass]
    public class FileUtilTest {
        [TestMethod]
        public void TestGetFileNameWithoutExtension() {
            FileInfo file = new FileInfo("FileUtilTest.cs");
            Assert.AreEqual("FileUtilTest", FileUtil.GetFileNameWithoutExtension(file));

            file = new FileInfo("folder\\FileUtilTest.cs");
            Assert.AreEqual("FileUtilTest", FileUtil.GetFileNameWithoutExtension(file));
        }
    }
}
